﻿using National.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;

namespace National.Models
{
    public class Users
    {
        // 静态的上下文
        public static Users ent = new Users();
        //会话的key
        private string SessionKey = "adminKey";
        //会话状态
        public HttpSessionState httpsessionState => HttpContext.Current.Session;
        //用户对象
        public User admin02
        {
            get
            {
                return httpsessionState[SessionKey] as User;
            }
            set
            {
                httpsessionState[SessionKey] = value;
            }
        }
    }
}